package com.example.spring_demo.config;

import com.example.spring_demo.dto.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan//spring-context.xml
public class BeanConfig {
    @Bean
    public User getUser() {
        return User.builder().uname("zhangsan").job("程序员").build();
    }
}
